package com.example.demo.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
public class CommentImage {
    private Long id;

    private Long commentId;

    private String url;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    public CommentImage() {
    }

    public CommentImage(Long id, Long commentId, String url, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.commentId = commentId;
        this.url = url;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
